import request from '@/utils/request'

// 课程报表相关操作---------------------------------------------------------------------------------------------

// 课程评论报表
export function reqCommentReport(data) {
    return request({
        url: '/report/commentReport',
        method: 'post',
        data
    })
}
// 课程报名报表
export function reqCourseApplyReport(courseID) {
    return request({
        url: '/report/courseApplyReport?courseID=' + courseID,
        method: 'get',
    })
}
// 课程报名报表-详情
export function reqCourseApplyDetailReport(data) {
    return request({
        url: '/report/courseApplyDetailReport',
        method: 'post',
        data
    })
}
// 获取课程分类
export function reqGetCourseTypes() {
    return request({
        url: '/common/getCourseTypes',
        method: 'get',
    })
}
// 获取已发布的所有课程
export function reqGetCourses() {
    return request({
        url: '/report/getCourses',
        method: 'get',
    })
}
// 导出课程报名数据
export function reqExportCourseApplyReport(data) {
    return request({
        url: '/report/exportCourseApplyReport',
        method: 'post',
        data
    })
}



